//
//  OosActivity.m
//  Oos4ios
//
//  Created by Pablo Gonzalez on 4/4/11.
//  Copyright 2011 11870.com. All rights reserved.
//

#import <oos4ios/Model/OosActivity.h>

@implementation OosActivity

static NSString *fetchPredicate = @"identifier = %@";

+ (OosActivity *) createFromId:(NSString *)identifier
{
	//NSSet *fetched = [super objectsWithPredicate: fetchPredicate, identifier];
	OosActivity *result = [super objectWithPredicate: fetchPredicate, identifier];
	
    if (!result) {
        result = [super create];
    }
    
//	if ([fetched count] > 0) {
//		result = [fetched anyObject];
//	} else {
//		result = [super create];
//	}
	return result;
}

@dynamic title;
@dynamic identifier;
@dynamic actor;
@dynamic verb;
@dynamic object;

@end
